#ifndef LABELX_H
#define LABELX_H

#include <QLabel>
#include <QWidget>

class LabelX : public QLabel
{
    Q_OBJECT
public:
    explicit LabelX(QWidget *parent = nullptr);

protected:
    // 进入事件
    void enterEvent(QEvent *event) override;

    // 离开事件
    void leaveEvent(QEvent *event) override;

    // 鼠标按下
    void mousePressEvent(QMouseEvent* ev) override;

    // 鼠标移动
    void mouseMoveEvent(QMouseEvent* ev) override;

    // 鼠标松开
    void mouseReleaseEvent(QMouseEvent* ev) override;
signals:
};

#endif // LABELX_H
